﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="FormEdit.aspx.cs" Inherits="WEB.Form.FormEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    报表模板设置
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
                <br />
                模板名称：<asp:TextBox ID="tb_Name" runat="server" AutoPostBack="True" OnTextChanged="tb_Name_TextChanged"></asp:TextBox>
                &nbsp;模板Excel：<asp:FileUpload ID="Fup_Excel" runat="server" />
                <br />
                <asp:Label ID="lb_msg" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center">
                <table>
                    <tr>
                        <td>
                            <asp:GridView ID="gv_Form" runat="server" AutoGenerateColumns="False" DataKeyNames="ID">
                                <Columns>
                                    <asp:TemplateField HeaderText="单元格">
                                        <ItemTemplate>
                                            <asp:TextBox ID="tb_cell" Text='<%# Eval("cell") %>' runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="SQL语句">
                                        <ItemTemplate>
                                            <asp:TextBox ID="tb_SQL" Text='<%# Eval("toSQL") %>' runat="server" Height="36px"
                                                TextMode="MultiLine" Width="209px"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <td>
                                <div style="width:400px;height:450px;overflow:auto;">
                                    <%
                                        Response.WriteFile("Remark.htm");
                                    %>
                                </div>
                            </td>
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Button ID="bt_NewRow" runat="server" OnClick="bt_NewRow_Click" Text="添加一行" 
                    CssClass="Submit_yellowbig" />
                <br />
                <br />
                <asp:Button ID="bt_save" runat="server" OnClick="bt_save_Click" Text="保存数据" 
                    CssClass="Submit_yellowbig" />
            </td>
        </tr>
    </table>
</asp:Content>
